Skip to content

[TEST] Use dedicated assertCount for test assertions#29

Merged
beatrycze-volk merged 1 commit into
slub:masterfrom
beatrycze-volk:test-count
Jun 22, 2026
Merged

[TEST] Use dedicated assertCount for test assertions#29
beatrycze-volk merged 1 commit into
slub:masterfrom
beatrycze-volk:test-count

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Switches from assertEquals(X, count($var)) to assertCount(X, $var) for checking collection sizes across various test files. This enhances readability and utilizes the more semantically correct PHPUnit assertion.

@beatrycze-volk beatrycze-volk added this to the PHP MODS Reader 0.5.0 milestone Jun 19, 2026
@beatrycze-volk beatrycze-volk self-assigned this Jun 19, 2026
@beatrycze-volk beatrycze-volk added the test Test coverage label Jun 19, 2026
@codacy-production

codacy-production Bot commented Jun 19, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Switches from `assertEquals(X, count($var))` to `assertCount(X, $var)`
for checking collection sizes across various test files. This enhances
readability and utilizes the more semantically correct PHPUnit assertion.
@beatrycze-volk beatrycze-volk merged commit 9933495 into slub:master Jun 22, 2026
5 checks passed
@beatrycze-volk beatrycze-volk deleted the test-count branch June 22, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant